public class Teacher
{
    String nameT;
    String subject;
    String title;
    int article;
    int span;
    int difficulty;
    int level;
    int score;
    int satisfication;
    public void infoload()
    {
        System.out.println("NAME: " + nameT);
        System.out.println("TITLE: " + title);
        System.out.println("SUBJECT: " + subject);
    }
    public int evaArti(int article)//void是一种无返还值的
    {
        //发文量指标。。。我完全不了解，毕竟还涉及到发到核心周刊啊什么的。。
        //那就有另外一套权重的计算体系了。。我这里不细究了，比较不严谨
        if (article > 40)
        {
            return 100;//将文数转化为分数
        }
        else if(article > 35)
        {
            return 90;
        }
        else if(article > 30)
        {
            return 85;
        }
        else if(article > 20)
        {
            return 80;
        }
        else
        {
            return 70;
        }
       //System.out.println("ARTICLE EVALUATION: " + article);
    }
    public int evaSpan(int span)
    {
        //教职年龄判别
        if(span > 30)
        {
            return 100;
        }
        else if(span >10)
        {
            return 80;
        }
        else
        {
            return 70;
        }
        //System.out.println("TEACHING SPAN EVALUATION: " + span);
    }
    public int evaLev(int difficulty)
    {
    //课程难度评价
        if(difficulty > 80)
        {
            return 50;
        }
        else if(difficulty > 40)
        {
            return 80;
        }
        else if(difficulty > 20)
        {
            return 90;
        }
        else
        {
            return 100;
        }
        //System.out.println("DGREThe method evaArti(int) in the type Teacher is not applicable for the arguments ()E OF DIFFICULTY EVALUATION: " + level);
    }
    public void remark(int article, int level, int spans,int satisfication)
    {
        //录入老师的20发文数量 15任教时间 30课程考试难度 35学生满意度  
        //我流计算老师好坏的权重
        double score = article * 0.2 + spans * 0.15 + level * 0.3 + satisfication * 0.35;//你还真打百分号上去，真有你的
        System.out.println("The " + nameT + "'s conprehensive score is " + score);
        //本来想用switch，可是表示不了区间，拉拉的 根本省不了内存，笑死
        if(score > 90)
        {
            System.out.println("好老师，快冲！");
        }
        else if(score > 80)
        {
            System.out.println("教学不错，可以选哦");
        }
        else if(score > 60)
        {
            System.out.println("可能会踩雷");
        }
        else
        {
            System.out.println("快逃！！！！");

        }
    }
}
  